package com.lun.blog.repostory;

import com.lun.blog.pojo.Type;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface TypeRepository extends JpaRepository<Type,Long> {

    Type findByName(String name);

    List<Type> findByIdIn(Set<Long> typeId);
}
